Tie the fit mode adjustment of WorkspacesDisplay to the
state adjustment of AppPagesContainer, and transition to
the ALL fit mode when the app grid is visible.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1613>
opacity: Util.lerp(0, 255, 1 - progress),
visible: (1 - progress) !== 0,
});
+
+ const { fitModeAdjustment } = this._workspacesDisplay;
+ fitModeAdjustment.value = Util.lerp(
+ WorkspacesView.FitMode.SINGLE,
+ WorkspacesView.FitMode.ALL,
+ progress);
}
_getWorkspacesBoxes(box, thumbnailsHeight) {
Main.wm.actionMoveWorkspace(ws);
return Clutter.EVENT_STOP;
}
+
+ get fitModeAdjustment() {
+ return this._fitModeAdjustment;
+ }
});